<?php
defined('_JEXEC') or die;
$editor = &JFactory::getEditor();
?>
<h1 class="cproject-title">
		<?php echo JText::_('Add New Cproject'); ?>
	</h1>
<div class="form-cproject">
    <form action="index.php?option=com_cproject&view=sections" id="frm_apply" name="frm_apply" method="post" enctype="multipart/form-data">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
            <tr>
                <td>Code</td>
                <td> <input class="cproject-code" type="text" name="code" id="code" size="15" maxlength="255" value="" /></td>
            </tr>
            <tr>
                <td>Name</td>
                <td><input class="cproject-name" type="text" name="name" id="name" size="40" maxlength="255" value="" /></td>
            </tr>
            <tr>
                <td>Section</td>
                <td><?php echo JHtml::_('select.genericlist', $this->sections, 'section_id', '', 'id', 'name', $this->sections[0]->name); ?></td>
            </tr>
            <tr>
                <td>Category</td>
                <td><?php echo JHtml::_('select.genericlist', $this->categories, 'category_id', '', 'id', 'name', $this->categories[0]->name); ?></td>
            </tr>
            <tr>
                <td>Result</td>
                <td><?php echo $editor->display('results', '', '100%', '350', '75', '20'); ?></td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" value="<?php echo JText::_('Submit'); ?>"/></td>
            </tr>


        </table>
        <input type="hidden" name="option" value="com_cproject" />
        <input type="hidden" name="task" value="newcproject.save" />
        <?php echo JHtml::_('form.token'); ?>
    </form>
</div>